<?php
/**
 * Created by PhpStorm.
 * Author: ExtraXue
 * Date: 2018/5/7
 * Description:
 */
require_once ('control/pdo.php');

$uid=$_GET['uid'];

$sqlGetPicInfo="select * from news_info a where a.uid={$uid}";
$rsGetPicInfo=$pdo->query($sqlGetPicInfo);
$resultGetPicInfo=$rsGetPicInfo->fetch(PDO::FETCH_ASSOC);

echo "<img src='{$resultGetPicInfo['pic_location']}'/>";